<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
        var str='acc dcc gcc rcc bcc';
        var re=/[^a-d]cc/g;
        //^ 排除
        alert(str.match(re));
	</script>
</head>
<body>

</body> 
</html>